package com.jy.records.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jy.users.domain.Users;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jy.common.annotation.Excel;
import com.jy.common.core.domain.BaseEntity;

/**
 * 借阅记录对象 borrow_records
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
public class BorrowRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 图书ID */
    @Excel(name = "图书ID")
    private Long bookId;

    /** 借阅用户ID */
    @Excel(name = "借阅用户ID")
    private Long userId;

    /** 借阅日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowDate;

    /** 应归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "应归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dueDate;

    /** 实际归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 罚款金额 */
    @Excel(name = "罚款金额")
    private BigDecimal fine;

    /** 图书馆用户信息 */
    private List<Users> usersList;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setBorrowDate(Date borrowDate) 
    {
        this.borrowDate = borrowDate;
    }

    public Date getBorrowDate() 
    {
        return borrowDate;
    }

    public void setDueDate(Date dueDate) 
    {
        this.dueDate = dueDate;
    }

    public Date getDueDate() 
    {
        return dueDate;
    }

    public void setReturnDate(Date returnDate) 
    {
        this.returnDate = returnDate;
    }

    public Date getReturnDate() 
    {
        return returnDate;
    }

    public void setFine(BigDecimal fine) 
    {
        this.fine = fine;
    }

    public BigDecimal getFine() 
    {
        return fine;
    }

    public List<Users> getUsersList()
    {
        return usersList;
    }

    public void setUsersList(List<Users> usersList)
    {
        this.usersList = usersList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("bookId", getBookId())
            .append("userId", getUserId())
            .append("borrowDate", getBorrowDate())
            .append("dueDate", getDueDate())
            .append("returnDate", getReturnDate())
            .append("fine", getFine())
            .append("usersList", getUsersList())
            .toString();
    }
}
